﻿using System.Security.Cryptography;

namespace Odyssey.BouncyCastle.RSAUtil
{
    public interface IRSAFormatter
    {
        RSA CreateByPublicKey(string key, int size = (int)EnumRSAMode.RSA2);

        RSA CreateByPrivateKey(string key, int size = (int)EnumRSAMode.RSA2);

        RSA ExportPublicKey(RSA privateRSA, RSAParameters? rsaPrivateParameters);
    }
}
